import { Router } from 'express';
import { UploadController } from '../controllers/upload.controller';
import { authMiddleware } from '../middlewares/auth.middleware';

const router = Router();
const uploadController = UploadController.getInstance();

/**
 * 上传图片
 * POST /api/upload/image
 */
router.post('/image', authMiddleware, uploadController.uploadImage);

/**
 * 上传视频
 * POST /api/upload/video
 */
router.post('/video', authMiddleware, uploadController.uploadVideo);

/**
 * 上传文档
 * POST /api/upload/document
 */
router.post('/document', authMiddleware, uploadController.uploadDocument);

export default router; 